<template>
  <div id="list">
      <div v-for="(item, index) in listData" :key="index" class="item">
        <span class="iconfont">{{item.icon}}</span>{{item.info}}
      </div>
  </div>
</template>

<script>
export default {
name:"ListView",
props:{
  listData:{
    type:Array,
    default:function(){
      return [];
    }
  }
},
created() {
  setTimeout(() => {
    console.log(this.listData);
  },0)
},
methods: {
 
},
}
</script>

<style scoped>
#list {
    background-color: #fff;
    font-size: 15px;
    color: #333;
  }

  #list .item {
    height: 44px;
    line-height: 44px;
    position: relative;
    text-align: left;
    margin-left: 30px;
  }
</style>